import $http from "./api";

export const querySlideList = () => $http('get', 'querySlideList');
export const queryArticleList = (data) => $http('post', 'queryArticleList', data);
export const queryBulletinList = () => $http('get', 'queryBulletinList');
export const queryArticleDetail = (id) => $http('get', 'queryArticleDetail' + `/${id}`);
export const queryArticlePrevAndNext = (classify, id) => $http('post', 'queryArticlePrevAndNext', {classify: classify, id: id});
export const saveUserInfo = (data) => $http('post', 'saveUserInfo', data);
export const comment = (data) => $http('post', 'comment', data);
export const getCommentList = (blogId) => $http('get', 'getCommentList' + `/${blogId}`);
export const sendEmail = (data) => $http('post', 'admin/sendEmail', data);
export const queryTags = () => $http('get', 'queryTags');
